import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/login',
      name: 'login',
      component: () => import('../views/login/sign.vue')
    },   
    {
      path: '/addinformation',
      name: 'addinformation',
      component: () => import('../views/login/addinformation/index.vue')
    },
    {
      path: '/adduser',
      name: 'adduser',
      component: () => import('../views/login/adduser/index.vue')
    },
    {
      path: '/address',
      name: 'address',
      component: () => import('../views/login/address/index.vue')
    },

    {
      path: '/homePage',
      name: 'homePage',
      component: () => import('../views/homePage/homePage.vue')
    },
    {
      path:'/serachPage',
      name:'serachPage',
      component: () => import('../views/homePage/serachPage.vue')      
    },
    {
      path:'/proDetails',
      name:'proDetails',
      component: () => import('../views/homePage/Searchs/proDetails.vue')
    },
    {
      path:'/searchproduct',
      name:'product',
      // component: () => import('../views/homePage/Searchs/compontent/product.vue')
      component: () => import('../views/homePage/Searchs/compontent/product.vue')

    },
    {
      path:'/searchstore',
      name:'store',
      component: () => import('../views/homePage/Searchs/compontent/store.vue')
    },
    {
      path: '/shopCate',
      name: 'shopCate',
      component: () => import('../views/shopCate/shopCate.vue')
    },
    //收藏夹
    {
      path: '/Favorites',
      name: 'Favorites',
      component: () => import('../views/shopCar/Favorites/Favorites.vue')
    },
    {
      path:'/shopCateOne:dd',
      name:'One',
      component:()=>import('@/views/shopCate/next/newOne.vue')
    },
    {
      path: '/shopCar',
      name: 'shopCar',
      component: () => import('../views/shopCar/shopCar.vue')
    },
    {
      path: '/Notlogged',
      name: 'Notlogged',
      component: () => import('../views/shopCar/Notlogged/index.vue')
    },
    {
      path: '/Ordersettlement',
      name: 'Ordersettlement',
      component: () => import('../views/shopCar/shopca/Ordersettlement/index.vue')
    },
    {
      path: '/Settlementfailed',
      name: 'Settlementfailed',
      component: () => import('../views/shopCar/shopca/Settlementfailed/index.vue')
    },
    {
      path: '/Settlementsucceeded',
      name: 'Settlementsucceeded',
      component: () => import('../views/shopCar/shopca/Settlementsucceeded/index.vue')
    },
    {
      path: '/mine',
      name: 'mine',
      component: () => import('../views/mine/mine.vue')
    },
        //配置客服路由
        {
            path:'/customerSer',
            name:'customerSer',
            component: () => import('../views/mine/miniMine/customerSer.vue'),
        },
        //配置客服路由2.0
        {
            path:'/customerSer2',
            name:'customerSer2',
            component: () => import('../views/mine/miniMine/customerSer2.vue'),
        },
         
        //配置直播路由
         {
            path:'/broadCast',
            name:'broadcast',
            component: () => import('../views/mine/miniMine/broadCast.vue'),
        },
          
        //配置进入直播间路由
          {
            path:'/broadVideo',
            name:'broadvideo',
            component: () => import('../views/mine/miniMine/broadVideo.vue'),
        },
         
        //配置设置路由
        {
            path:'/setUp',
            name:'setUp',
            component: () => import('../views/mine/miniMine/setUp.vue'),
        },
        
        //配置编辑个人信息路由
        {
        path:'/MyIdEdit',
        name:'MyIdEdit',
        component: () => import('../views/mine/miniMine/miniSetup/MyIdEdit.vue'),
        },
        
        //配置手机号修改路由
        {
        path:'/MyphoneEdit',
        name:'MyphoneEdit',
        component: () => import('../views/mine/miniMine/miniSetup/MyphoneEdit.vue'),
        },
        
        //配置音效与通知路由
        {
        path:'/MySeffectsNotice',
        name:'MySeffectsNotice',
        component: () => import('../views/mine/miniMine/miniSetup/MySeffectsNotice.vue'),
        },
    
        //配置通用路由
        {
        path:'/MyCurrency',
        name:'MyCurrency',
        component: () => import('../views/mine/miniMine/miniSetup/MyCurrency.vue'),
        },
        
        //配置隐私条款路由
        {
        path:'/MyPrivacyPolicy',
        name:'MyPrivacyPolicy',
        component: () => import('../views/mine/miniMine/miniSetup/MyPrivacyPolicy.vue'),
        },
        
        //配置关于路由
        {
        path:'/MyAbout',
        name:'MyAbout',
        component: () => import('../views/mine/miniMine/miniSetup/MyAbout.vue'),
        },
  ]
})

export default router
